#define  _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<deque>
#include<algorithm>
using namespace std;

void PrintDeque(const deque<int>& v)
{
	for (deque<int>::const_iterator it = v.begin(); it < v.end(); it++)
	{
		cout  << *it  << endl;
	}
}

void test01()
{
	deque<int>v1;
	v1.push_back(10);
	v1.push_back(100);
	v1.push_back(20);
	v1.push_back(5);
	PrintDeque(v1);
	sort(v1.begin(), v1.end());
	PrintDeque(v1);
}	

int main()
{
	test01();
	return 0;
}